import java.util.Scanner;

public class 等腰三角形 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入行数");
		// shiXinSanJiao(scanner.nextInt());
		kongXinDengYaoSanJiaoXing(scanner.nextInt());
	}

	static void shiXinSanJiao(int h) {
		for (int i = 1; i <= h; i++) {

			// 输出空格//
			for (int j = i; j <= (h - 1); j++) {
				System.out.print(" ");
			}
			// 输出*
			for (int j = 1; j <= 2 * i - 1; j++) {
				System.out.print("*");
			}
			System.out.println();

		}
	}

	static void kongXinDengYaoSanJiaoXing(int row) {
		for (int i = 1; i <= row; i++) {
			// 输出空格
			for (int j = i; j <= (row - 1); j++) {
				System.out.print(" ");
			}
			// 先输出*
			for (int j = 1; j <= 2 * i - 1; j++) {
				if (j == 1 || j == 2 * i - 1 || i == row) {
					System.out.print("*");
				} else {
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}

}
